package Stack;

import java.util.Stack;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 石方旭
 * Date: 2022-05-10
 * Time: 16:42
 */
public class StackTest {
    public static void main(String[] args) {
       // Stack stack = new Stack<>();

         MyStack stack = new MyStack();
         stack.push(1);
         stack.push(2);
         stack.push(3);
         stack.push(4);
         stack.display();
        System.out.println("============");
         stack.pop();
        stack.pop();
        stack.pop();
        stack.pop();
        stack.pop();
        stack.display();

    }

}
